/*******************************************************************************
 * Copyright (c) 2008, 2025 Lablicate GmbH.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 * Philip Wenig - initial API and implementation
 *******************************************************************************/
package org.eclipse.chemclipse.model.identifier;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import java.util.HashSet;
import java.util.Set;

import org.junit.jupiter.api.Test;

public class LibraryInformation_2_Test {

	private ILibraryInformation libraryInformation = new LibraryInformation();

	@Test
	public void testGetSynonyms_1() {

		assertNotNull(libraryInformation.getSynonyms());
	}

	@Test
	public void testGetSynonyms_2() {

		libraryInformation.setSynonyms(null);
		assertNotNull(libraryInformation.getSynonyms());
	}

	@Test
	public void testGetSynonyms_3() {

		assertEquals(0, libraryInformation.getSynonyms().size());
	}

	@Test
	public void testGetSynonyms_4() {

		libraryInformation.setSynonyms(null);
		assertEquals(0, libraryInformation.getSynonyms().size());
	}

	@Test
	public void testGetSynonyms_5() {

		Set<String> synonyms = new HashSet<>();
		synonyms.add("Philip");
		synonyms.add("is");
		synonyms.add("the");
		synonyms.add("founder");
		synonyms.add("of");
		synonyms.add("ChemClipse.");
		libraryInformation.setSynonyms(synonyms);
		assertEquals(6, libraryInformation.getSynonyms().size());
	}
}
